﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<LoginVModel>" %>
<%@ Register src="/Views/Shared/AccountFooter.ascx" tagname="AccountFooter" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>
        <%:SiteResource.Title() %></title>
         <%="<meta name=\"Keywords\" content=\"" + SiteResource.KeyWord() + "\" />\r\n"%>
    <%="<meta name=\"Description\" content=\"" + SiteResource.Description() + "\" />\r\n"%>
    <meta name="robots" content="None"/>
    <link href="/Content/css/login.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/common.css" rel="Stylesheet" type="text/css" />
    <link href="/Content/css/commonstyle.css" rel="Stylesheet" type="text/css" />
    <link href="/Content/css/activation.css" rel="Stylesheet" type="text/css" />
    <script type="text/javascript" src="/Scripts/jquery-1.4.1.min.js"></script>    
    <script type="text/javascript" src="/Scripts/library.js" charset="GB2312"></script>
    <script type="text/javascript" src="/Scripts/plug.js" charset="GB2312"></script>
    <script type="text/javascript">
        $(function () {
            jQuery('#Validator').val('');
            jQuery('input[name="token"]').val('');
            <%if(ViewData["AlterActivate"] == "1")
            {%>
                var popframe = new plug.PopFrame();
                popframe.OpenFrame('pop','clo');
            <%} %>
            highlight.ResistHighLight();
        });
        var library = new library.Login();
        var highlight = new plug.HighLightControl();
        function Refalsh(sender) {
            library.Refalsh(sender);
        }
        function getmail(u){
            $.ajax({
                url:'/account/ReSendEmail',
                data:{username:u},
                cache:false,
                type:'get',
                success:function(result){
                    $('#divacmsg').text('邮件已重发至您的注册邮箱');
                }
            });
        }
        library.BindValidator();
    </script>
</head>
<body>
    <div class="box" id="pop" style="display: none;">
        <div class="boxbg">
            <div class="activation">
                <img alt="账号需要激活" src="/Content/images/激活提示.png" />
                <div class="activation-text1">
                    <b>尊敬的用户! </b>您的账户尚未完成邮箱验证!<br />
                </div>
                <div class="activation-text2">
                    <b>只差一步，您就可享受重庆大学生兼职网为您免费提供的丰富兼职信息服务！</b>
                </div>
                <div class="activation-text2">
                    建议您马上进入邮箱激活您的账号。
                    <br />
                    感谢您对重庆大学生兼职网的支持，我们将为您提供最为优质的服务！<br />
                </div>
                <div class="activation-text2">
                        如您有疑问，请<a href="/home/contact#messageblack" style="color:#900808">联系我们或给我们留言</a>。
                </div>
                <a href="javascript:;" onclick="getmail('<%:ViewData["username"] %>')">重发激活邮件</a>
                <a href="/home/index">暂不激活</a>
                <div id="divacmsg"></div>
            </div>
            <input type="hidden" id="clo" value="" />
        </div>
    </div>
    <div class="login">
        <div class="login-line">
            <div class="login-line-left">
                <div class="login-logo">
                    <img alt="重庆大学生兼职网" src="/Content/Images/logo-01.png" />
                </div>
            </div>
            <div class="login-line-right">
                <div class="login-topright">
                    <a href="/">站点首页</a><span>|</span><a href="/Account/CRegister">注册</a><span>
                </div>
            </div>
        </div>
        <div class="login-line">
            <div class="login-line-left">
                <div class="login-leftpic">
                    <img alt="重庆大学生兼职网" src="/Content/Images/bg01.png" />
                </div>
            </div>
            <form action="/Account/Login" method="post">
            <input type="hidden" name="token" />
            <input type="hidden" name="ReturnUrl" value="<%:this.Context.GetParameter("ReturnUrl") %>" />
            <div class="login-line-right">
                <div class="login-box">
                    <div class="login-boxbg">
                        <div class="loginbox-title">
                            <img alt="会员登录" src="/Content/Images/会员登录.jpg" />
                        </div>
                        <%if (!Model.Pass)
                          { %>
                        <div id="errmsg" class="box-center font-center font-darkred border-grassgreen backcolor-lightyellow box-relative-width80" style="padding-top:4px; padding-left:16px">
                            <%:Model.FaildMessage %>
                        </div>
                        <%} %>
                        <div class="loginbox-line">
                            <div class="loginbox-text">
                                登录名
                            </div>
                            <div class="loginbox-box">
                                <input type="text" name="UserName" value="<%:Model.UserName %>" maxlength="50" tabindex="1"
                                    class="ipt-1 highlightborder #ffc15c" /></div>
                        </div>
                        <div class="loginbox-line">
                            <div class="loginbox-text">
                                密&nbsp;&nbsp;码
                            </div>
                            <div class="loginbox-box">
                                <input type="password" name="Password" maxlength="20" tabindex="2" class="ipt-1 highlightborder #ffc15c" /></div>
                        </div>
                        <div class="loginbox-line">
                            <div class="loginbox-text">
                                验证码
                            </div>
                            <div class="loginbox-box">
                                <input type="text" name="Validator" maxlength="4" tabindex="3" style="width: 50px;
                                    float: left; border: 1px solid #ccc" class="highlightborder #ffc15c" />
                                <div id="codeimg" class="regbox-item-message" style="float: right; margin-right:15px">
                                </div>
                            </div>
                        </div>
                        <div class="loginbox-line">
                            <input type="checkbox" id="Remember" name="Remember" class="checkboxl" />
                            <label for="Remember">
                                记住登录名</label>
                        </div>
                        <div class="loginbox-line">
                            <div class="loginbuttom">
                                <input type="submit" class="smb_btn" value="" />
                            </div>
                        </div>
                        <div class="loginbox-line">
                            <div class="loginbox-forgotpass">
                                <a href="/account/resetpassword">忘记密码？</a></div>
                        </div>
                        <div class="loginbox-sepline">
                            还不是会员？
                        </div>
                        <div class="loginbox-line">
                            <div class="registerbuttom">
                                <a href="/Account/CRegister" class="reg_btn"></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            </form>
        </div>
        <div class="content-line">
            <uc1:AccountFooter ID="AccountFooter1" runat="server" /> 
        </div>
    </div>
</body>
</html>